<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Information</title>
        <link href="./resources/primefaces-sunny/theme.css" rel="stylesheet" type="text/css"  />
    </h:head>
    <h:body>
        <h:form>
            <table cellpadding="10" cellspacing="10">
                <tr>
                    <td colspan="2"><h3>Account Information</h3></td>
                </tr>
                <tr>
                    <td width="50%">UserName: </td>
                    <td width="50%"><h:outputText value="#{admin.user.uid}"/></td>
                </tr>
                <tr>
                    <td>Password: </td>
                    <td>
                        <p:commandLink value="Change Password" onclick="changePwd.show();"/>
                    </td>
                </tr>
                <tr>
                    <td>Gender: </td>
                    <td>
                        <h:selectOneRadio value="#{admin.user.gender}" disabled="true">
                            <f:selectItem itemLabel="Male" itemValue="true"/>
                            <f:selectItem itemLabel="Female" itemValue="false"/>
                        </h:selectOneRadio>
                    </td>
                </tr>
                <tr>
                    <td>Join Date: </td>
                    <td><h:outputText value="#{admin.joinDate}"/></td>
                </tr>
                <tr>
                    <td>Status: </td>
                    <td><h:outputText value="#{admin.user.status}"/></td>
                </tr>
                <tr>
                    <td colspan="2" align="center"><p:commandButton value="Cancel" onclick="infor.hide();"/></td>
                </tr>
            </table>

            <script type="text/javascript">  
        function handleLoginRequest(xhr, status, args) {  
            if(args.validationFailed || !args.changed) {  
                jQuery('#change').parent().effect("shake", { times:3 }, 100);  
            } else {  
                changePwd.hide();  
            }  
        }  
            </script>  
        </h:form>
    </h:body>
</html>

